﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChessGame.Movement
{
    /// <summary>
    /// Hit Object
    /// </summary>
    public class Hit
    {
        public List<HitOption> hitOptions;

        /// <summary>
        /// Hit Constructor
        /// </summary>
        public Hit()
        {
            hitOptions = new List<HitOption>();
        }

        /// <summary>
        /// Adds a HitOption to the list.
        /// </summary>
        /// <param name="x">Position X</param>
        /// <param name="y">Position Y</param>
        public void Add(int x, int y) {
            hitOptions.Add(new HitOption(x, y));
        }

        /// <summary>
        /// Get all HitOptions.
        /// </summary>
        /// <returns>List of HitOption's</returns>
        public List<HitOption> GetOptions()
        {
            return hitOptions;
        }
    }
}
